package com.wangzh.regex;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Demo3 {
    public static void main(String[] args) {
        String str = "asd12as12as12";

        Pattern p = Pattern.compile(".{4}");
        Matcher matcher = p.matcher(str);
        while (matcher.find()){
            System.out.println(matcher.group());
        }
    }
}
